home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
x11
/
rpg
/
crossfir.92
/
crossfir
/
crossfire-0.92.5
/
include
/
xdir.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-24
|
689b
|
36 lines
/* Headers and macros necessary for reading a directory
* Taken from server/input.c into separate files when this was needed
* in server/encounter.c, too
*/
#ifndef M_UNIX
#define M_UNIX
#endif
#define POSIX
#include <sys/types.h>
#ifdef NeXT
#include <sys/dir.h>
#endif
#include <sys/stat.h>
#include <dirent.h>
struct xdirect {
short d_namlen;
char *d_name;
int size;
int time;
};
#define XDIR DIR
/*struct xdirect *xreaddir(XDIR *, int);*/
#define xopendir(path) (opendir(path))
#define xclosedir(dir_ptr) (closedir(dir_ptr))
#define xrewinddir(dir_ptr) (rewinddir(dir_ptr))
#ifndef S_ISREG
#define S_ISREG(x) (((x) & S_IFMT) == S_IFREG)
#endif